/** Copyright 2011 SERLI

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License. **/

package com.serli.neeriou.client.android.model;

// TODO: Auto-generated Javadoc
/**
 * The Class ChatUser.
 */
public class ChatUser {

	/** The login. */
	private String mLogin;

	/** The status. */
	private String mStatus;

	/** The distance. */
	private double mDistance;

	/** The boolean is starred. */
	private boolean mIsStarred;

	/** The boolean is blocked. */
	private boolean mIsBlocked;

	/**
	 * Instantiates a new chat user.
	 *
	 * @param login the login
	 * @param status the status
	 * @param distance the distance
	 * @param isStarred the is starred
	 * @param isBlocked the is blocked
	 */
	public ChatUser(final String login, final String status,
			final double distance, final boolean isStarred,
			final boolean isBlocked) {
		super();
		this.mLogin = login;
		this.mStatus = status;
		this.mDistance = distance;
		this.mIsStarred = isStarred;
		this.mIsBlocked = isBlocked;
	}

	/**
	 * Gets the login.
	 * 
	 * @return the login
	 */
	public String getLogin() {
		return mLogin;
	}

	/**
	 * Sets the login.
	 * 
	 * @param login
	 *            the new login
	 */
	public void setLogin(final String login) {
		this.mLogin = login;
	}

	/**
	 * Gets the status.
	 * 
	 * @return the status
	 */
	public String getStatus() {
		return mStatus;
	}

	/**
	 * Sets the status.
	 * 
	 * @param status
	 *            the new status
	 */
	public void setStatus(final String status) {
		this.mStatus = status;
	}

	/**
	 * Gets the distance.
	 * 
	 * @return the distance
	 */
	public double getDistance() {
		return mDistance;
	}

	/**
	 * Sets the distance.
	 * 
	 * @param distance
	 *            the new distance
	 */
	public void setDistance(final double distance) {
		this.mDistance = distance;
	}

	/**
	 * Checks if is starred.
	 * 
	 * @return true, if is starred
	 */
	public boolean isStarred() {
		return mIsStarred;
	}

	/**
	 * Sets the starred.
	 * 
	 * @param isStarred
	 *            the new starred
	 */
	public void setStarred(final boolean isStarred) {
		this.mIsStarred = isStarred;
	}

	/**
	 * Checks if is blocked.
	 * 
	 * @return true, if is blocked
	 */
	public boolean isBlocked() {
		return mIsBlocked;
	}

	/**
	 * Sets the blocked.
	 * 
	 * @param isBlocked
	 *            the new blocked
	 */
	public void setBlocked(final boolean isBlocked) {
		this.mIsBlocked = isBlocked;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return mLogin + " " + mStatus + " " + mDistance + " " + mIsStarred
				+ " " + mIsBlocked;
	}

}
